package com.gxa.mapper;

import com.gxa.domain.dto.SysUserInfoUpdateDTO;
import com.gxa.domain.dto.SysUserSaveDTO;
import com.gxa.domain.dto.SysUserUpdateDTO;
import com.gxa.domain.entity.SysUser;
import org.apache.ibatis.annotations.Param;

public interface SysUserMapper {
     SysUser findSysUserByUserId(Integer userId);

     int addSysUser(SysUserSaveDTO sysUserSaveDTO);

     int updateSysUser(SysUserUpdateDTO sysUserUpdateDTO);
     int updateSysUserInfo(SysUserInfoUpdateDTO sysUserInfoUpdateDTO);

     int delSysUserByUserId(Integer userId);

    SysUser findSysUserByAccount(String account);

    int updatePassword(@Param("userId") Integer userId,@Param("newPassword") String newPassword);
}
